<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admgroupmanmaj.php,v $ 
 * $Date: 2005/08/29 15:00:33 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
$query="SELECT * FROM groupe ORDER BY id";
$result=rportalrequete($query) or die ("ERREUR 0058");
while($row=rportalligne($result))
{
	if($argid[$row[id]]==1)
	{
		$query="INSERT INTO groupe_management VALUES ('$idg','$row[id]');";
		$result2=rportalrequete($query) or die ("ERREUR 0059");
	}
	else if($argid[$row[id]]==2)
	{
		$query="DELETE FROM groupe_management WHERE id_groupe='$idg' AND id_management='$row[id]';";
		$result2=rportalrequete($query) or die ("ERREUR 0060");
	}
}
?>
<?php
header("Location: ?op=admgroupliste#$idg");
?>